﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom;

namespace devtm.Templates.Helpers
{


    public class MyField : CodeFieldReferenceExpression
    {

        public MyField() { }

        public MyField(CodeExpression targetObject, string propertyName) : base(targetObject, propertyName) { }

        public MyField(MyRef myRef, string propertyName, string typeName): this(myRef, propertyName) 
        {

            Type = new MyType(typeName);
            
        }

        public MyField(MyRef myRef, string propertyName, Type type)
            : this(myRef, propertyName)
        {

            Type = new MyType(type);

        }

        public MyField(MyRef myRef, string propertyName, MyType type)
            : this(myRef, propertyName)
        {

            Type = type;

        }


        public MyType Type { get; private set; }

    }


}
